// import { http } from "../request/index";
import { localStg } from "@/chat/utils/storage";

// 登录接口
export const login = (data) => {
  return http.request({
    url: "/login",
    method: "post",
    data,
  });
};

// 注册接口
export const register = (data) => {
  return http.request({
    url: "/register",
    method: "post",
    data,
  });
};

// 账号列表
export const getUserList = async () => {
  return [
    { value: "admin" },
    { value: "zhangal" },
    { value: "jinwx" },
  ]
};

// 退出登录
export const logout = () => {
  // localStg.clear();
  // localStg.remove(ACCESS_TOKEN);
};
